<template>
  <div class="recommended">
    <!-- 轮播图 -->
    <ch-banner :themeColor="themecolor" />
    <!-- 热门歌单 -->
    <div class="hot">
      <ch-hotrecommended :themeColor="themecolor" />
    </div>
    <!-- 独家放送 -->
    <div class="exclusive">
      <ch-excLusive :themeColor="themecolor" />
    </div>
    <!-- 最新音乐 -->
    <div class="newmusic">
      <ch-newmusic :themeColor="themecolor" />
    </div>
    <!-- 推荐MV -->
    <div class="recommendedmv">
      <ch-recommendedmv :themeColor="themecolor" />
    </div>
    <!-- 主播电台 -->
    <div class="hotradio">
      <ch-hotradio :themeColor="themecolor" />
    </div>
  </div>
</template>

<script>
import HotRecommended from "./components/hotRecommended.vue";
import ExcLusive from "./components/exclusive.vue";
import NewMusic from "./components/newmusic.vue";
import RecommendedMv from "./components/recommendedmv.vue";
import banner from "@/components/common/banner";
import hotradio from "./components/hotradio";
export default {
  name: "recommended",
  components: {
    "ch-hotrecommended": HotRecommended,
    "ch-excLusive": ExcLusive,
    "ch-newmusic": NewMusic,
    "ch-recommendedmv": RecommendedMv,
    "ch-banner": banner,
    "ch-hotradio": hotradio
  },
  props: {},
  data() {
    return {
      themecolor: localStorage.getItem("themeColor") // 颜色
    };
  },
  computed: {
    themeColor() {
      return this.$store.state.themeColor;
    }
  },
  watch: {
    themeColor() {
      this.themecolor = this.$store.state.themeColor;
    }
  },
  created() {},
  mounted() {},
  methods: {}
};
</script>

<style scoped lang="scss">
.recommended {
  padding: 0 9.375rem;
}
</style>
